package com.tuliyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tuliyou.entity.ScoreRank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ScoreRankMapper extends BaseMapper<ScoreRank> {

    @Select("select `rank` from score_ranks where `score` = #{examScore} and stat_year = 2025")
    Integer getRankByScore(Integer examScore);
}
